package _99BeiWangLu;

import java.util.ArrayList;
import java.util.List;

/**
 * @CareTaker: 状态恢复类
 * @author: ZBoHang
 * @time: 2021/9/17 14:57
 */
public class CareTaker {
    private List<Memento> list = new ArrayList<>();

    public void add(Memento memento) {
        list.add(memento);
    }

    public Memento get(int index) {
        return list.get(index);
    }
}
